import request from '@/utils/request'

// 查询中医治疗手法记录列表
export function listTherapy(query) {
  return request({
    url: '/health/therapy/list',
    method: 'get',
    params: query
  })
}

// 查询中医治疗手法记录详细
export function getTherapy(id) {
  return request({
    url: '/health/therapy/' + id,
    method: 'get'
  })
}

// 新增中医治疗手法记录
export function addTherapy(data) {
  return request({
    url: '/health/therapy',
    method: 'post',
    data: data
  })
}

// 修改中医治疗手法记录
export function updateTherapy(data) {
  return request({
    url: '/health/therapy',
    method: 'put',
    data: data
  })
}

// 删除中医治疗手法记录
export function delTherapy(id) {
  return request({
    url: '/health/therapy/' + id,
    method: 'delete'
  })
}
